﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public class UserModel
    {

        public long UserId { get; set; }

        public string UserName { get; set; }

        public string State { get; set; }

        public DateTime ModifyTime { get; set; }

        /// <summary>
        /// 禁用用户
        /// </summary>
        /// <returns></returns>
        public void DisableUser()
        {
            State = "F";
            ModifyTime = DateTime.Now;
        }

        /// <summary>
        /// 启用用户
        /// </summary>
        public void EnabledUser()
        {
            State = "T";
            ModifyTime = DateTime.Now;
        }
    }
}
